package com.lanyou.esb.cook.proxy.service;

import com.lanyou.esb.cook.proxy.entity.IfAvgResTimes;
import com.lanyou.esb.cook.proxy.service.push.Push;

/**
 * 接口平均响应时间接口
 * 
 * @author Davey.wu
 */
public interface IfAvgResTimesService {

	/**
	 * 将接口平均响应时间存储到Redis
	 *
	 * @param ifAvgResTimes
	 */
	void pushToRedis(IfAvgResTimes ifAvgResTimes);

	/**
	 * 获取需要推送的数据
	 * 
	 * @return
	 */
	Push<IfAvgResTimes> getPush();
}
